package com.duguo.dynamicmvc.view.redirect;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.duguo.dynamicmvc.model.Model;
import com.duguo.dynamicmvc.view.AbstractView;

public class HttpRedirectView extends AbstractView {

	public HttpRedirectView(String viewName){
		setViewName(viewName);
	}
	
    public void render(HttpServletRequest request, HttpServletResponse response, Model model) throws Exception {
    	response.sendRedirect(getViewName());
    }
}
